#pragma once

namespace bitlog
{
    class LogLevel
    {
    public:
        enum class lev
        {
            UNKNOW = 0,
            DEBUG,
            INFO,
            WARN,
            ERROR,
            FATAL,
            OFF
        };

        static const char *toString(lev level)
        {
            switch (level)
            {
            case lev::DEBUG:
                return "DEBUG";
            case lev::INFO:
                return "INFO";
            case lev::WARN:
                return "WARN";
            case lev::ERROR:
                return "ERROR";
            case lev::FATAL:
                return "FATAL";
            case lev::OFF:
                return "OFF";
            }

            return "UNKNOW";
        }
    };
}